package com.qfedu.ssm.controllers;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/c")
public class CController {
    @RequestMapping("/add.do")
    @RequiresPermissions("/sys:c:save")
    public String add(){
        System.out.println("c---------add");
        return "/index.jsp";
    }
    @RequestMapping("/update.do")
    @RequiresPermissions("/sys:c:update")
    public String update(){
        System.out.println("c---------update");
        return "/index.jsp";
    }
    @RequestMapping("/delete.do")
    @RequiresPermissions("/sys:c:delete")
    public String delete(){
        System.out.println("c---------delete");
        return "/index.jsp";
    }
    @RequestMapping("/find.do")
    @RequiresPermissions("/sys:c:find")
    public String find(){
        System.out.println("c---------find");
        return "/index.jsp";
    }
}
